/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ie.tcd.cs.railtickets.commons.dto;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Wenbo Sun
 */
public class BookRequestDTO implements Serializable {

    private long timeId;
    private Date travelDate;
    private int sum = 1;

    public BookRequestDTO() {
    }

    public BookRequestDTO(long timeId, Date travelDate) {
        this.timeId = timeId;
        this.travelDate = travelDate;
    }

    public BookRequestDTO(long timeId, Date travelDate, int sum) {
        this.timeId = timeId;
        this.travelDate = travelDate;
        this.sum = sum;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public long getTimeId() {
        return timeId;
    }

    public void setTimeId(long timeId) {
        this.timeId = timeId;
    }

    public Date getTravelDate() {
        return travelDate;
    }

    public void setTravelDate(Date travelDate) {
        this.travelDate = travelDate;
    }


}
